<?php

namespace app\common\validate;

use think\Validate;

class CurdValidate extends Validate
{
    protected $rule = [
            'id'    => 'require',
            'field' => 'require',
            'value' => 'require',
    ];

    protected $message = [
            'id.require'    => 'id不能为空',
            'field.require' => '字段不能为空',
            'value.require' => '值不能为空',
    ];

    protected $scene = [
            'modify' => ['id', 'field', 'value'],
            'del'    => ['id']
    ];
}